package lch.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import lch.dao.CheckRoleDao;
import lch.pojo.Role;
import lch.service.CheckRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author Ber
 * @date 2020-01-16 16:54
 */
@Service(interfaceClass = CheckRoleService.class)
@Transactional
public class CheckRoleServiceImpl implements CheckRoleService {

    @Autowired
    private CheckRoleDao checkRoleDao;

    @Override
    public List<Role> findAll() {
        return checkRoleDao.findAll();
    }
}